package com.hejing.面向对象特征之三_多态.初识多态;

/**
 * ClassName: Cat
 * Package: com.hejing.面向对象特征之三_多态.初识多态
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-03-26 14:47
 * @Version: 1.0
 */
public class Cat extends Animal{
    public void eat() {
        System.out.println("猫咪吃小鱼干");
    }

    public void jump() {
        System.out.println("猫咪跳高");
    }

    public void catchMouse() {
        System.out.println("猫咪抓老鼠");
    }


}




















